package com.jkoss.wine.shop.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;


/**
 * 
 * 
 * @Author Jason
 * @Version 1.0, 2018-10-03
 * @See
 * @Since com.jkoss.wine.shop.entity
 * @Description: TODO
 */
@TableName("inventory_warning")
public class InventoryWarning extends Model<InventoryWarning> {

    private static final long serialVersionUID = 1L;

    @TableId("inventory_warning_id")
    private String inventoryWarningId;
    @TableField("product_id")
    private String productId;
    @TableField("product_norm_id")
    private String productNormId;
    @TableField("shop_id")
    private String shopId;
    @TableField("warning_value")
    private Integer warningValue;
    @TableField("operator")
    private String operator;
    @TableField("add_time")
    private Date addTime;


    public String getInventoryWarningId() {
        return inventoryWarningId;
    }

    public void setInventoryWarningId(String inventoryWarningId) {
        this.inventoryWarningId = inventoryWarningId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductNormId() {
        return productNormId;
    }

    public void setProductNormId(String productNormId) {
        this.productNormId = productNormId;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public Integer getWarningValue() {
        return warningValue;
    }

    public void setWarningValue(Integer warningValue) {
        this.warningValue = warningValue;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.inventoryWarningId;
    }

    @Override
    public String toString() {
        return "InventoryWarning{" +
        ", inventoryWarningId=" + inventoryWarningId +
        ", productId=" + productId +
        ", productNormId=" + productNormId +
        ", shopId=" + shopId +
        ", warningValue=" + warningValue +
        ", operator=" + operator +
        ", addTime=" + addTime +
        "}";
    }
}
